﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ThaiHoa.Win.QLSX.Kho;
using ThaiHoa.Win.QLSX.SanXuat;
using ThaiHoa.Win.QLSX.QLKH;
using DevComponents.DotNetBar;

namespace ThaiHoa.Win.QLSX.Main
{
    public partial class frmMain : Form
    {
        AccessKH acs1;
        ThaiHoa.Win.QLSX.Kho.Access acsKho;
        ThaiHoa.Win.QLSX.SanXuat.Access acsSanXuat;
        public frmMain()
        {
            InitializeComponent();
        }

        private void máyMócToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsKho.ShowFormMayMocList();
        }

        private void thànhPhẩmToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsKho.ShowFormThanhPhamList();
        }

        private void bộPhậnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsSanXuat.ShowFormBoPhanList();
        }

        private void dâyChuyềnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsSanXuat.ShowFormDayChuyenList();
        }

        private void độiSảnXuấtToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsSanXuat.ShowFormDoiSanXuatList();
        }

        private void loạiCôngNhânToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsSanXuat.ShowFormLoaiCongNhanList();
        }

        private void côngNhânToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsSanXuat.ShowFormCongNhanList();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            acsKho = new ThaiHoa.Win.QLSX.Kho.Access(this);
            acsSanXuat = new SanXuat.Access(this);
            acs1 = new AccessKH(this);
        }

        private void thépĐặcToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsKho.ShowFormThepDacList();
        }

        private void thépỐngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsKho.ShowFormThepOngList();
        }

        private void thépTấmToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsKho.ShowFormThepTamList();
        }

        private void thépLướiToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsKho.ShowFormThepLuoiList();
        }

        private void tônToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsKho.ShowFormTonList();
        }

        private void loạiVậtTưToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsKho.ShowFormMacVatTuList();
        }

        private void tồnKhoTốiThiểuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsKho.ShowFormTonKhoToiThieu();
        }

        private void địnhMứcVậtTưToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsKho.ShowFormDinhMucVatTu();
        }

        private void đốiTácToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsKho.ShowFormDoiTacList();
        }

        private void nhậpKhoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsKho.ShowFormNhapKho();
        }

        private void đơnVịTínhToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsKho.ShowFormDonViTinhList();
        }

        private void loạiMáyMócToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsKho.ShowFormLoaiMayMocList();
        }

        private void xuấtKhoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsKho.ShowFormXuatKho();
        }

        private void đơnĐặtHàngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsKho.ShowFormDonDatHang();
        }

        private void côngCụDụngCụToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsKho.ShowFormCongCuDungCuList();
        }

        private void côngĐoạnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acsSanXuat.ShowFormCongDoanSanXuatList();
        }

        private void toolStripMenuItem3_Click(object sender, EventArgs e)
        {
            acs1.ShowFormTaoMoiHopDong();
        }

        private void lậpKếHoạchTheoHợpĐồngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acs1.ShowFormTaoMoiKeHoachHopDong();
        }

        private void lậpKếHoạchThángToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acs1.ShowLenKeHoachThang();
        }

        private void kHThángToolStripMenuItem_Click(object sender, EventArgs e)
        {
            acs1.ShowLenKeHoachform1();
        }
    }
}
